﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:MTGScore"
    x:Class="MTGScore.HelpPage"
    xmlns:toolbox="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="HelpPage_Loaded"
    
    >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="350*" />
            <ColumnDefinition Width="130*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="70*"/>
            <RowDefinition Height="330*" />
            <RowDefinition Height="40*" />
            <RowDefinition Height="80" />
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Margin="12,17,0,28" Grid.ColumnSpan="2">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="{Binding Path=Strings.Helps, Source={StaticResource LocalizedStrings }}" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <toolbox:PerformanceProgressBar Name="ToggleProgressBar" Grid.Row="3" Height="30" Grid.ColumnSpan="2" Margin="0,6" />


        <phone:WebBrowser Name="WebBrowser" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LoadCompleted="WebBrowser_LoadCompleted" Grid.Row="2" Navigating="WebBrowser_Navigating" Grid.ColumnSpan="2" IsScriptEnabled="True" />

        <Button Height="70" Content="{Binding Path=Strings.Search, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Stretch" Name="Search_Button" VerticalAlignment="Stretch" Click="Search_Button_Click" Grid.Row="1" VerticalContentAlignment="Center" Grid.ColumnSpan="1" Grid.Column="1"/>
        <TextBox Height="70" FontSize="30" Text="" Grid.ColumnSpan="1" Grid.Row="1" HorizontalAlignment="Stretch" Name="Searced_Area" VerticalAlignment="Center" KeyDown="Searched_Area_KeyDown" Padding="-2"/>

        <Grid Name="AdGrid" xmlns:adctl="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI" Grid.Row="3" Grid.ColumnSpan="2">
            <adctl:AdControl Name="AdControl" Height="80" Width="480" AdUnitId="32126" ApplicationId="b76d31a7-58ed-4379-bf66-a32f00905f2d" AdModel="Contextual" />
        </Grid>

    </Grid>
 
    

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBar.MenuItems>
                <!--<shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>-->
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
